package com.kg.module.jtnc.dkgl.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.kg.core.base.model.BaseEntity;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 地块管理表
 * </p>
 *
 * @author xxx
 * @since 2024-11-02
 */
@Getter
@Setter
@TableName("kr_dkgl")
@ApiModel(value = "KrDkgl对象", description = "地块管理表")
public class KrDkgl implements BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "dkgl_id", type = IdType.ASSIGN_ID)
    private String dkglId;

    @ApiModelProperty("地块名称")
    @TableField("dkmc")
    private String dkmc;

    @ApiModelProperty("地块面积")
    @TableField("dkmj")
    private String dkmj;

    @ApiModelProperty("地块位置")
    @TableField("dkwz")
    private String dkwz;

    @ApiModelProperty("传感器")
    @TableField("cgq")
    private String cgq;

    @ApiModelProperty("地块类型")
    @TableField("dklx")
    private String dklx;

    @ApiModelProperty("创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

    @ApiModelProperty("地块二维码")
    @TableField("dkewm")
    private String dkewm;
}
